
// #ifndef VUE3
import Vue from 'vue'
import App from './App' 


import store from './store'
import router,{  RouterMount } from './router'  //路径换成自己的
import "request/httpIntercept.js" //uni.request拦截设置

import axios from 'axios';  
import * as echarts from 'echarts';
import CustomTab from '@/components/CustomTab/CustomTab.vue'; 
import CustomTabBar from '@/components/CustomTabBar/CustomTabBar.vue';
import uView from '@/uni_modules/uview-ui';
Vue.use(uView); 
Vue.prototype.$axios = axios;
Vue.prototype.$store = store;



Vue.config.productionTip = false

Vue.prototype.$echarts = require('echarts');
Vue.component('CustomTab', CustomTab); 
Vue.component('CustomTabBar', CustomTabBar); 

App.mpType = 'app'

Vue.use(router)
const app = new Vue({
    store,
    router,
    ...App
})
RouterMount(app, router, '#app')
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif